package com.wj.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zhaoyang
 * @className DiseasesInsectParam
 * @description
 * @company CDFT
 * @date 2023/4/24 14:30:37
 */
@Data
@ApiModel("新增/添加病虫害参数")
public class DiseasesInsectVO {
    private String id;
    @ApiModelProperty("病虫害名称")
    @NotBlank(message = "病虫害名称不能为空")
    private String name;
    @ApiModelProperty("病虫害类型  1为病害 2为虫害")
    @NotBlank(message = "病虫害类型不能为空")
    private Integer type;
    @ApiModelProperty("病虫害所属作物id")
    private String plantTypeId;
    @ApiModelProperty("病虫害介绍")
    @NotBlank(message = "病虫害介绍不能为空")
    private String introduce;
    @ApiModelProperty("病虫害特征")
    @NotBlank(message = "病虫害特征不能为空")
    private String symptom;
    @ApiModelProperty("病虫害防治方法")
    @NotBlank(message = "病虫害防治方法不能为空")
    private String controlMethods;
    @ApiModelProperty("病虫害特征/发病原因")
    private String featureReason;
    @ApiModelProperty("病虫害传播方式/生活习性")
    private String habitsWay;

    private String plantTypeName;

    private String code;

    private String image;
}
